﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NetTopologySuite.Geometries;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_buildings")]
    public partial class ZmBuildings:Repository.IEntity
    {
        [Key]

        [Column("geom", TypeName = "geometry(MultiPolygon,4326)")]
        public MultiPolygon Geom { get; set; }

        public string Id { get; set; }
        public string xzqdm { get; set; }
        public string xzq { get; set; }
        public string fwbh { get; set; }
        public decimal? zzmj { get; set; }
        public string towndm { get; set; }
        //public Geometry Geom { get; set; }
        public string yhfwbh { get; set; }
        public string address { get; set; }
        public string add2 { get; set; }
        public int? cs { get; set; }
        public string villagedm { get; set; }
        public string build_time { get; set; }
        public string aqyhqk { get; set; }
        public string bdlx { get; set; }
        public string bdtime { get; set; }
        public string fwlx { get; set; }
        public string hzxm { get; set; }
        public string village { get; set; }
        public string town { get; set; }
        public int? jzrks { get; set; }
        public int? zzrs { get; set; }
        public int? jzfjs { get; set; }
        public int? fjsl { get; set; }
        public int? jzscxyaqcksl { get; set; }
        public decimal? jzscmj { get; set; }
        public int? jzszlwxdlgybjqs { get; set; }
        public int? jzsyjyplmhxts { get; set; }
        public int? jzxyssltsl { get; set; }
        public string? pczt { get; set; }

        [NotMapped]
        public DateTime CreateOn { get; set; }
        [NotMapped]
        public DateTime? ModifiedOn { get; set; }
        [NotMapped]
        public short? IsDelete { get; set; }
        [NotMapped]
        public DateTime? DeleteOn { get; set; }
    }
}
